package scfg.utils.training_set_filter;

import java.util.ArrayList;
import java.util.List;

import scfg.AlignedSequence;

public class DensityFilter {

	
	public static List<AlignedSequence> getDensityFilteredGroup(List<AlignedSequence> sequences, double thresholdHigh, double thresholdLow){
		List<AlignedSequence> accepted = new ArrayList<AlignedSequence>();
		for (AlignedSequence seq : sequences) {
			if (seq.getDenseComp() >= thresholdLow && seq.getDenseComp() <= thresholdHigh)
				accepted.add(seq);
		}
		return accepted;
	}

}
